import {
	HTTP
} from '../utils/http.js'
let http = new HTTP()

export const getRestaurantTmplData = (productCode) => {
	return http.request({
		url: `/front/restaurant/getRestaurantTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}
// 旅拍
export const getTravelPhotographyTmplData = (productCode) => {
	return http.request({
		url: `/front/products/getTravelPhotographyTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}



// 海岛产品内容信息-获取酒店模板内容 
export const getHotelTmplData = (productCode) => {
	return http.request({
		url: `/front/products/getHotelTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}


// 玩乐项目-获取项目模板内容
export const getActivityTmplData = (productCode) => {
	return http.request({
		url: `/front/activity/getActivityTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 玩乐项目-获取项目模板内容
export const getPartyTmplData = (productCode) => {
	return http.request({
		url: `/front/party/getPartyTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 获取酒店房间详情
export const getHotelGoodsTmplData = (productCode) => {
	return http.request({
		url: `/front/productsGoods/getHotelGoodsTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 获取餐饮商品详情
export const getRestaurantGoodsTmplData = (productCode) => {
	return http.request({
		url: `/front/productsGoods/getRestaurantGoodsTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 获取景区详情
export const getScenicSpotTmplData = (productCode) => {
	return http.request({
		url: `/front/scenicSpot/getScenicSpotTmplData/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 研学商品详情
export const getPartyGoodsDetail = (productCode) => {
	return http.request({
		url: `/front/productsGoods/getPartyGoodsDetail/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 旅拍商品详情
export const getTravelPhotographyGoodsDetail = (productCode) => {
	return http.request({
		url: `/front/productsGoods/getTravelPhotographyGoodsDetail/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

// 玩乐项目商品详情
export const getProjectActivityGoodsDetail = (productCode) => {
	return http.request({
		url: `/front/productsGoods/getProjectActivityGoodsDetail/${productCode}`,
		method: 'GET',
		type: "ws"
	})
}

/*
	获取站点数据
 */
export const getBySiteAndArea = (data) => {
	return http.request({
		url: `/front/liSlideshowInfo/getBySiteAndArea/${data.siteId}/${data.scenicAreaId}`,
		method: 'POST',
		type: "ws"
	})
}


/*
	 弹窗广告
	scene为场景，INDEX-首页
 */
export const getPopupads = (scene) => {
	return http.request({
		url: `/front/popupads/${scene}`,
		method: 'GET',
		type: "ws"
	})
}


/*
	 开票或换开接口
 */
export const invoiceOrRedRush = (data) => {
	return http.request({
		url: `/front/ship/invoice/invoiceOrRedRush`,
		method: 'POST',
		data,
		type: "ws"
	})
}


/*
	 获取发票信息列表
 */
export const getInvoiceInfoList = (data) => {
	return http.request({
		url: `/front/ship/invoice/getInvoiceInfoList`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 获取开票数据
 */
export const invoiceTicketList = (data) => {
	return http.request({
		url: `/front/ship/invoice/invoiceTicketList`,
		method: 'POST',
		data,
		type: "ws"
	})
}


/*
	 改签支付
 */
export const changeTicketOrder = (data) => {
	return http.request({
		url: `/front/ship/order/changeTicketOrder`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 查询船票信息
 */
export const getShipTicketInfo = (data) => {
	return http.request({
		url: `/front/ship/getShipTicketInfo`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 一码通船票列表
 */
export const getUserShipTicketList = (data) => {
	return http.request({
		url: `/front/ship/getUserShipTicketList`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 查询船票订单详细（入参多了source字段）
 */
export const getShipTicketOrderDetail = (data) => {
	return http.request({
		url: `/front/ship/getShipTicketOrderDetail`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 是否可以改签
 */
export const getChangeTicketFee = (data) => {
	return http.request({
		url: `/front/ship/getChangeTicketFee`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 确认改签前查询改签总费用接口
 */
export const getChangeTicketTotalFee = (data) => {
	return http.request({
		url: `/front/ship/getChangeTicketTotalFee`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 查询改签状态
 */
export const getChangeTicketStatus = (data) => {
	return http.request({
		url: `/front/ship/getChangeTicketStatusNew`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 再支付
 */
export const againPay = (data) => {
	return http.request({
		url: `/front/ship/order/pay`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 查询改签票信息
 */
export const getChangeTicketInfo = (data) => {
	return http.request({
		url: `/front/ship/getChangeTicketInfoNew`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 查询退票信息
 */
export const queryFefundFee = (data) => {
	return http.request({
		url: `/front/ship/queryFefundFee`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 退票
 */
export const refundTicket = (data) => {
	return http.request({
		url: `/front/ship/refundTicket`,
		method: 'POST',
		data,
		type: "ws"
	})
}

/*
	 退票
 */
export const weatherInfo = (data) => {
	return http.request({
		url: `/front/amap/weather/weatherInfo?city=440400&extensions=base`,
		method: 'GET',
		data,
		type: "ws"
	})
}




